﻿<div style="display:none">
<div class="login-box" id="login-dialog">
<div class="login-top"><a class="current" rel="nofollow" id="login1" onclick="setTab('login',1,2);" >登录</a><a rel="nofollow" id="login2" onclick="setTab('login',2,2);">注册</a></div>
<div class="login-form" id="nav-signin">
<div class="login-ico">
{if condition="(!empty($userconfig['api_qq_appid'])) and (!empty($userconfig['api_qq_appkey']))"}
<a rel="nofollow" class="qq" id="qqlogin" {notempty name="userconfig['api_login_auth']"}href="{:zanpian_user_url('user/Snslogin/qq')}" target="_blank"{else/}url="{:zanpian_user_url('user/Snslogin/qq',array('t'=>1))}" t="1"{/notempty}> QQ </a>
{/if}
{notempty name="userconfig['api_weixin_appkey']"}
<a class="weixin" rel="nofollow" href="#" type="300"> 微信 </a>
{/notempty}
{if condition="(!empty($userconfig['api_weibo_appkey'])) and (!empty($userconfig['api_weibo_appsecret']))"}
<a class="sina" rel="nofollow"id="weibologin" type="200" {notempty name="userconfig['api_login_auth']"} href="{:zanpian_user_url('user/Snslogin/weibo')}" target="_blank"{else/}url="{:zanpian_user_url('user/Snslogin/weibo',array('t'=>1))}" t="1"{/notempty}> 微博 </a>
{/if}
</div>
<div class="login-box-form" id="con_login_1">
<form id="loginform"  method="post" onsubmit="return false;">
<p class="int-text">
<input class="email" id="username" name="username" type="text" value="用户名或Email" onfocus="if(this.value=='用户名或Email'){this.value='';}" onblur="if(this.value==''){this.value='用户名或Email';};" ></p>
<p class="int-text">
<input class="password1" type="password" id="password" name="password"  value="******"  onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';" >
</p>
{notempty name="userconfig['user_code']"}
<p class="int-text1"><span class="inputbox">
<input id="validate" name="validate" type="text" value="验证码" onfocus="if(this.value=='验证码'){this.value='';}" onblur="if(this.value==''){this.value='验证码';};"></span><span class="yzm-img"><img src="{:zp_url('user/validate/verify','',false,false)}" alt="看不清楚换一张"  id="indexlogin"></p>
{/notempty} 
<p class="int-info">
                <label class="ui-label">&nbsp;</label>
                <label for="agreement" class="ui-label-checkbox">
                <input type="checkbox" value="" name="cookietime" id="cookietime" checked="checked" value="2592000">
                <input type="hidden" name="notforward" id="notforward" value="1">
                <input  type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label>                           
       <a rel="nofollow" class="aright" href="{:zanpian_user_url('user/login/forgetpwd')}" target="_blank"> 忘记密码？ </a></p>
  <p class="int-btn"><a rel="nofollow" id="loginbt"  class="loginbtn"><span>登录</span></a></p> 
  </form>
</div>
<form id="regform" action="{:zanpian_user_url('user/reg/index')}" method="post">
<div  class="login-reg" style="display: none;" id="con_login_2">
<input type="hidden" name="t" id="t"/>
  <p class="int-text">
    <input  id="email" name="email" type="text" value="Email" onfocus="if(this.value=='Email'){this.value='';}" onblur="if(this.value==''){this.value='Email';};"></p>
    <p class="int-text">
    <input id="uname" name="username" type="text" value="用户名或昵称" onfocus="if(this.value=='用户名或昵称'){this.value='';}" onblur="if(this.value==''){this.value='用户名或昵称';};"></p>
  <p class="int-text">
  <input  type="password" id="pwd" name="password" value="******"  onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';"> </p>
 {notempty name="userconfig['user_code']"}
  <p class="int-text1"><span class="inputbox">
    <input id="validate" name="validate" type="text" value="验证码" onfocus="if(this.value=='验证码'){this.value='';}" onblur="if(this.value==''){this.value='验证码';};">
    </span><span class="yzm-img"><img src="{:zanpian_user_url('user/validate/verify','',false,false)}" alt="看不清楚换一张"  id="indexreg"></p>
  {/notempty} 
  <p class="int-info">
    <label>
      <input value="" name="agreement" id="agreement" CHECKED="checked" type="checkbox">
      我已阅读<a rel="nofollow" href="{:zanpian_user_url('user/reg/agreement')}">用户协议</a>及<a rel="nofollow" href="{:zanpian_user_url('user/reg/agreement')}">版权声明</a></label>
  </p>
  <p class="int-btn"><input type="hidden" name="dosubmit"/>
<a rel="nofollow" class="loginbtn"  id="register"><span>注册</span></a></p>
</div>
 </form>
</div>
</div>
</div>